import 'dart:typed_data';

import 'package:bluetooth_parse_plugin/src/base/realtime_info_base.dart';
import 'package:bluetooth_parse_plugin/src/base/realtime_state_base.dart';
import 'package:bluetooth_parse_plugin/src/base/reltime_error_base.dart';

// 功能基类
abstract class FunctionsBase {
  // 获取SN
  Future<String> getSN(Uint8List bytes);

  // 获取实时信息
  Future<T> getRealtimeInfo<T extends RealtimeInfoBase>(Uint8List bytes);

  // 获取实时状态
  Future<T> getRealtimeState<T extends RealtimeStateBase>(Uint8List bytes);

  // 获取实时错误
  Future<T> getRealtimeError<T extends RealtimeErrorBase>(Uint8List bytes);
}
